# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=gpscorrelate
pkgver=2.0_git20220524
_githash=36dcd86a055999a89b23400b73356d5c34b170c4
pkgrel=0
pkgdesc="Program to match GPS tracks to photographs and store the matches in EXIF"
url="https://dfandrich.github.io/gpscorrelate/"
arch="all"
license="GPL-2.0"
makedepends="
	desktop-file-utils
	exiv2-dev
	gettext-dev
	gtk+3.0-dev
	intltool
	libintl
	libxml2-dev
	libxslt-dev
	"
subpackages="$pkgname-cli $pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/dfandrich/gpscorrelate/archive/$_githash.tar.gz"
builddir="$srcdir/$pkgname-$_githash"

build() {
	make all build-po
}

check() {
	make check
}

package() {
	make install install-desktop-file install-po DESTDIR="$pkgdir" prefix=/usr
}

cli() {
	pkgdesc="$pkgdesc (cli only)"
	amove /usr/bin/gpscorrelate
}

sha512sums="
83c152e4df21f19bc18f3f177ecb03c4cc4bbb4981badc12b1a41e4aceef7cdc2bf651c8f67d5e2ac3bfef543bdacfac96aca965d730c74e2db9a48ea1952a34  gpscorrelate-2.0_git20220524.tar.gz
"
